package com.example.demoexample;

import android.app.Activity;
import android.app.Application;

import java.util.HashSet;
import java.util.Set;

public class DemoApplication extends Application {
    private static DemoApplication sInstance;
    private Set<Activity> mActivities = new HashSet<>();

    @Override
    public void onCreate() {
        super.onCreate();
        sInstance = this;
    }

    public static DemoApplication getInstance(){
        return sInstance;
    }

    public Set<Activity> getActivities() {
        return mActivities;
    }

    public void setActivities(Set<Activity> activities) {
        mActivities = activities;
    }

}
